package com.szu.smart_illustrator.entity;

import java.sql.Timestamp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Builder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2023-11-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class Passage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *  
    */
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;

    /**
    *  文章内容（富文本）
    */
    @TableField("`content`")
    private String content;

    /**
    *  用户Id
    */
    @TableField("userId")
    private Integer userId;

    /**
    *  最后编辑时间
    */
    @TableField("lastEditedDate")
    private Timestamp lastEditedDate;

    /**
     * 标题
     *
     * @mock title
     * @required
     */

    @TableField("title")
   private  String title;

    /**
     * 图片
     * @mock pictures
     * @required
     */

    private  String pictures;
}
